package com.yesido.springcloud.dao;

import com.yesido.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @program: my-study
 * @description:
 * @author: yuliang
 * @create: 2021-06-07 10:48
 */
@Mapper
@Repository
public interface UserMapper8002 {
    /**
     * 获取全部信息下
     */
    List<User> findAllUsers();

    /**
     * 根据id获取信息
     */
    User findUserById(@Param("id") int id);

    int addUser(User user);
}